<h3>Nạp thẻ - Kiếm thế 247</h3>

<div class="notice">
	<?php if(Yii::app()->user->hasFlash('error')): ?>
		<?php $this->widget('bootstrap.widgets.BootAlert'); ?>
	<?php endif ?>
	<?php if(Yii::app()->user->hasFlash('success')):?>
		<?php $this->widget('bootstrap.widgets.BootAlert'); ?>
	<?php endif ?>
</div>

<div class="inner-content form-login">
	<div class="notice">
		<?php if(Yii::app()->user->hasFlash('error')): ?>
			<?php $this->widget('bootstrap.widgets.BootAlert'); ?>
		<?php endif ?>
		<?php if(Yii::app()->user->hasFlash('success')):?>
			<?php $this->widget('bootstrap.widgets.BootAlert'); ?>
		<?php endif ?>
	</div>

	<div class="form">
	<?php $form=$this->beginWidget('CActiveForm', array(
		'id'=>'register-form',
		'enableClientValidation'=>true,
		'clientOptions'=>array(
			'validateOnSubmit'=>true,
		),
	)); ?>

		<div class="row">
			<?php echo $form->dropDownList($model,
				'kind',
//				CHtml::listData(Banks::model()->active()->findAll(),'id','name'),
				$kind,
				array('empty'=>Yii::t('label','Loại thẻ'))
			); ?>
			<?php echo $form->error($model,'kind'); ?>
		</div>

		<div class="row">
			<div class="row-input">
				<?php echo $form->textField($model,'pin',array(
					'autocomplete'=>'off',
					'placeholder'=>Yii::t('label','Mã số thẻ ( Pin )'),
				)); ?>
				<?php echo $form->error($model,'pin'); ?>
			</div>
		</div>


		<div class="row">
			<div class="row-input">
				<?php echo $form->textField($model,'seri',array(
					'autocomplete'=>'off',
					'placeholder'=>Yii::t('label','Số Seri'),
				)); ?>
				<?php echo $form->error($model,'seri'); ?>
			</div>
		</div>


	    <div class="row row-border-top">
			<?php if(CCaptcha::checkRequirements()): ?>
			<div class="row">
				<?php echo $form->labelEx($model,'verifyCode'); ?>
				<div>
					<div class="row">
						<?php $this->widget('CCaptcha',array(
							'buttonLabel'	 => 'Refresh Captcha',
						)); ?>
					</div>
					<div class="row">
						<div class="row-input">
							<?php echo $form->textField($model,'verifyCode'); ?>
						</div>
					</div>
				</div>

				<?php echo $form->error($model,'verifyCode'); ?>
			</div>
			<?php endif; ?>
		</div>

		<div class="row buttons">
			<?php echo CHtml::submitButton('Nạp thẻ',array(
					'class'=>'btn-submit submit-form-login ',
					'name'=>'charge'
				)); ?>
		</div>

	<?php $this->endWidget(); ?>
	</div><!-- form -->

</div>


<script language="JavaScript">
<!--
jQuery(function($) {
	$('.row input').popover({
		placement: 'top',
		trigger:'focus',
	});
});
// -->
</script>